package at.fhooe.mcm12.java.sensors.data;

public class AirPressure extends SensorValue{

	private double m_pressure;
	
	public AirPressure(double _pressure, long _timestamp, String _unit)
	{
		super(_timestamp, _unit);
		
		m_unit = _unit;
		m_pressure = _pressure;
	}
	
	public double getPressure()
	{
		return m_pressure;
	}
	
	public void setPressure(double _pressure)
	{
		m_pressure = _pressure;
	}
	
	public String toString()
	{
		return String.format("%.2f " + m_unit, m_pressure);
	}
}
